package routers

import (
	"github.com/gin-gonic/gin"
	"month_zg5/client/api"
)

func BookRouter(router *gin.RouterGroup) {
	book := router.Group("book")
	book.POST("/desc/book", api.GetDescBook)
	book.POST("/es/search", api.SearchBook)
	book.POST("/create/bookshelf", api.CreateBookshelf)
	//无限极分类
	book.POST("/type", api.GetTypeInfo)
	book.POST("/detail", api.GetDateilInfo)
	book.POST("/top", api.BookTop)
	book.POST("/common", api.CreateCommon)
	book.POST("/read/list", api.ReadList)
}
